﻿namespace MSSqlSchemaDoc.Core.DataStructures
{
    using System;
    using System.Xml.Serialization;

    /// <summary>
    /// Represents index information for a column.
    /// </summary>
    [Serializable()]
    public class IndexMember
    {
        /// <summary>
        /// Gets or sets the name of the index.
        /// </summary>
        [XmlAttribute()]
        public string Name { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether the column is merely included in the index,
        /// or whether it is part of the ordered index.
        /// </summary>
        [XmlAttribute()]
        public bool IsIncluded { get; set; }
    }
}
